import 'package:boss/ui/page/packageGroup/page/packageGroupDetail/widget/package_group_detail_header.dart';
import 'package:boss/ui/page/packageGroup/page/packageGroupDetail/provider/package_group_detail_provider.dart';
import 'package:boss/ui/widget/column_divier.dart';
import 'package:hi_common/hi_common.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';

import 'package_group_detail_commoditys.dart';

class PackageGroupDetailContent extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Expanded(
      child: SingleChildScrollView(
        child: Consumer<PackageGroupDetailProvider>(
          builder: (context, provider, _) {
            return ColumnDivier(
              crossAxisAlignment: CrossAxisAlignment.start,
              padding: EdgeInsets.symmetric(
                horizontal: 30.w,
              ),
              children: [
                PackageGroupDetailHeader(),
                PackageGroupDetailCommoditys(),
              ],
            );
          },
        ),
      ),
    );
  }
}
